<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" >

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地區')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="xianshi,xzq">
                <select class="xianshi form-control" name="row[xianshi]" data-url="jdy/anchang/cxselect?type=xianshi">
                    <option value="{$row.xianshi}" selected>{$row.xianshi}</option>
                </select>
                <select class="xzq form-control" name="row[xzq]" data-url="jdy/anchang/cxselect?type=xzq" data-query-name="xianshi">
                    <option value="{$row.xzq}" selected>{$row.xzq}</option>
                </select>
                <input type="hidden" class="operate" data-name="xianshi" value="=" />
                <input type="hidden" class="operate" data-name="xzq" value="=" />
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addr" data-rule="" class="form-control" name="row[addr]" type="text" value="{$row.addr}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" name="row[remark]" type="text" value="{$row.remark}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Floor_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-floor_no" data-rule="" class="form-control" name="row[floor_no]" type="number" value="{$row.floor_no}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact1_name" data-rule="" class="form-control" name="row[contact1_name]" type="text" value="{$row.contact1_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1電話')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact1_mobile" data-rule="" class="form-control" name="row[contact1_mobile]" type="text" value="{$row.contact1_mobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口2姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact2_name" data-rule="" class="form-control" name="row[contact2_name]" type="text" value="{$row.contact2_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('社區窗口1電話')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact2_mobile" data-rule="" class="form-control" name="row[contact2_mobile]" type="text" value="{$row.contact2_mobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Companywindow_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-companywindow_id" data-rule="" data-source="auth/admin/index" style="display:block;" data-primary-key="id" data-field="nickname" class="form-control selectpage" name="row[companywindow_id]" type="text" value="{$row.companywindow_id}">
        </div>
    </div>
    

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mapurl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mapurl" data-rule="" class="form-control" name="row[mapurl]" type="text" value="{$row.mapurl}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('經緯度')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" class="form-control" name="row[lng]"  value="{$row.lng}" type="text">
        </div>
    </div>
    

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">

            <button id="c-submit" type="button" class="btn btn-success btn-embossed" style="width: 200px" >{:__('OK')}</button>

        </div>
    </div>
</form>


